change last character color css

41

.test::after{
    content: "g";
    color: yellow;
}

/* HTML */
<p class="test">strin</p>

Comments

Submit
0 Comments